package com.qhong.modules.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2016/9/21 0021.
 */

@RestController
public class HelloController {

    //@ApiIgnore
    @RequestMapping(value="/hello",method= RequestMethod.GET)
    public String Index(){
        return "hello world!";
    }

    @RequestMapping(value = "/hello2", method = RequestMethod.GET)
    public String hello(@RequestParam String name) {
        return "Hello " + name;
    }
}
